
package com.jf.cloud.multishop.mapper;

import com.jf.cloud.multishop.model.ShopPaymentBalance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家余额支付表
 *
 * @author zz
 * @date 2022-06-22 17:09:12
 */
public interface ShopPaymentBalanceMapper {

    /**
     * 获取商家余额支付表列表
     * @return 商家余额支付表列表
     */
    List<ShopPaymentBalance> list();

    /**
     * 根据商家余额支付表id获取商家余额支付表
     *
     * @param balancePaymentId 商家余额支付表id
     * @return 商家余额支付表
     */
    ShopPaymentBalance getByBalancePaymentId(@Param("balancePaymentId") Long balancePaymentId);

    /**
     * 保存商家余额支付表
     * @param shopPaymentBalance 商家余额支付表
     */
    void save(@Param("shopPaymentBalance") ShopPaymentBalance shopPaymentBalance);

    /**
     * 更新商家余额支付表
     * @param shopPaymentBalance 商家余额支付表
     */
    void update(@Param("shopPaymentBalance") ShopPaymentBalance shopPaymentBalance);

    /**
     * 根据商家余额支付表id删除商家余额支付表
     * @param balancePaymentId
     */
    void deleteById(@Param("balancePaymentId") Long balancePaymentId);
}
